package org.jsbd.boss.service.impl;

import org.jsbd.boss.common.redis.RedisClient;
import org.jsbd.boss.domian.channel.WeiboUser;
import org.jsbd.boss.service.INewWeiboUserService;
import org.jsbd.boss.util.CacheKey;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @desc
 * @Date 2018/7/17 19:31
 * @Author xupengcheng [xupengcheng@zhexinit.com]
 */
@Service
public class NewWeiboUserServiceImpl implements INewWeiboUserService {



    @Resource
    private RedisClient redisClient;

    @Override
    public WeiboUser selectUser() {
        return (WeiboUser) redisClient.pollFromQueue(CacheKey.NEW_WEIBO_USER_QUEUE);
    }


}
